package com.bytezero.override;

public class Person 
{
	String name;
	int age;
	
	public Person()
	{
		
	}
	
	public Person(String name,int age)
	{
		this.name = name;
		this.age = age;
	}
	
	public void eat()
	{
		System.out.println("吃饭");
	}
	public void walk(int  distance)
	{
		System.out.println("走路，走的距离是啊"+distance+"公里");
		show();
		eat();
	}
	
	private void show()
	{
		System.out.println("这是一个私有的方法");
	}
	
	public Object info()
	{
		return null;
	}
	
	public double info1()
	{
		return 1.0;
	}
	
	
}
















































